<?php
/**
 * Common Template - tpl_columnar_display.php
 *
 * This file is used for generating tabular output where needed, based on the supplied array of table-cell contents.
 *
 * @package templateSystem
 * @copyright Copyright 2003-2006 Zen Cart Development Team
 * @copyright Portions Copyright 2003 osCommerce
 * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
 * @version $Id: tpl_columnar_display.php 3157 2006-03-10 23:24:22Z drbyte $
 */

?>
<?php
// if ($title) {
    echo oss_default_template_container_top($title==""?"&nbsp;":$title); 
// }
?>


<div class="middle">
<?php
if (is_array($list_box_contents) > 0 ) {
?>
    <table class="list">

<?php
$array_count = 0;
 for($row=0;$row<sizeof($list_box_contents);$row++) {
    $params = "";
    //if (isset($list_box_contents[$row]['params'])) $params .= ' ' . $list_box_contents[$row]['params'];
?>
        <tr>
<?php
    for($col=0;$col<sizeof($list_box_contents[$row]);$col++) {
            echo '<td style="width: 25%;">';  
      $r_params = "";
      if (isset($list_box_contents[$row][$col]['params'])) $r_params .= ' ' . (string)$list_box_contents[$row][$col]['params'];
     if (isset($list_box_contents[$row][$col]['text'])) {
?>
    <?php /*echo '<div' . $r_params . '>'; */?>
    <?php echo $list_box_contents[$row][$col]['text'] .  '<br />' . "\n"; ?>
<?php
      }
            echo '</td>';
    }
?>
        </tr>
<?php
  }
?>
    </table>
<?php
}
?> 
</div>

<?php echo oss_default_template_container_bottom(); ?>